package com.solid.bean;

import java.util.HashMap;
import java.util.Map;

public class Constant {

    private Constant() {
    }


    /**
     * <li>Description:列表默认每页显示条数</li>
     */
    public static final Integer PAGE_SIZE = 10;

    /**
     * <li>Description:列表默认显示页码</li>
     */
    public static final Integer PAGE_NUM = 1;

    /**
     * <p/>
     * <li>是</li>
     */
    public static final String YES = "Y";

    /**
     * <p/>
     * <li>否</li>
     */
    public static final String NO = "N";

    /**
     * <li>逗号</li>
     */
    public static final String COMMA = ",";

    /**
     * shiro 判断是否为超级管理员
     */
    public static final String SHIRO_ROLE_IS_SUPER_ADMIN = "IS_SUPER_ADMIN";
    /**
     * 登录用户信息
     */
    public static final String LOGIN_USER_VO = "LOGIN_USER_INFO";

    /**
     * true
     */
    public static final Integer INTEGER_TRUE = 1;

    /**
     * false
     */
    public static final Integer INTEGER_FALSE = 0;

    /**
     * 权限资源类型
     */
    public static class AuthResourceType {

        private AuthResourceType() {

        }

        /**
         * 根据路径
         */
        public static final int ROOT_MENU = 1;

        /**
         * 菜单路径
         */
        public static final int MENU = 2;

        /**
         * 操作权限
         */
        public static final int OPERATION = 3;
    }
}
